package com.app.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.app.entity.*;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface GoodsDAO {
    public List<Goods> getGoodsPager(@Param("skip") int skip, @Param("size") int size);

    public Goods getGoodsById(int id);

    public int getGoodsCount();

    public int insert(Goods entity);

    public int delete(int id);

    public int update(Goods entity);

    public List<Goods> getAllGoods();

    public List<Goods> getRandGoods();

    public List<Goods> getRandTest();
}
